﻿using Microsoft.AspNetCore.Http;
using OnlineEducation.Helpers;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using AutoMapper;

namespace OnlineEducation.Data.Entities
{
    public class EntityBase
    {
        public DateTime CreatedTime { get; set; }
        public DateTime UpdatedTime { get; set; }

        [StringLength(100)]
        public string CreatedBy { get; set; }
        [StringLength(100)]
        public string UpdatedBy { get; set; }

        public EntityBase()
        {
            //CreatedTime = DateTime.Now;
            //UpdatedTime = DateTime.Now;
            //CreatedBy = HttpContextHelper.Current.User.Identity.Name;
            //UpdatedBy = HttpContextHelper.Current.User.Identity.Name;
        }
    }


}


